package com.example.userservice.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.userservice.entity.User;
import com.example.userservice.entity.dto.UserDtoUpdate;
import com.example.userservice.entity.dto.UserDto;
import com.example.userservice.entity.dto.UserDtoRegisterOrLogin;
import com.example.userservice.entity.dto.UserDtoRetPassword;
import com.example.userservice.entity.vo.UserVo;

import java.util.List;


public interface UserService extends IService<User> {
    List<UserVo> getUsers();
    UserVo getUser(Long targetUserId);
    Boolean updateUser(UserDtoUpdate user, Long targetUserId, String ip);
    Boolean resetPassword(UserDtoRetPassword user, String ip);
    void register(User user, String ip);
    String login(UserDtoRegisterOrLogin user, String ip);
}
